package com.qinggeng.project.system.domain;

import com.qinggeng.framework.aspectj.lang.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 商品赠品对象 goods_gift
 *
 * @author qinggeng
 * @date 2020-07-16
 */
@Data
public class GoodsGift
{
    private static final long serialVersionUID = 1L;


    public static final String GOODS_GIFT_CONFIG_KEY="sys.gift.goodsGiftConfig";

    public static final String FREE_GIFT_CONFIG_KEY="sys.gift.freeGiftConfig";

    public static final String GOODS_GIFT_ID_KEY="sys.gift.goodsGiftId";

    /** ID */
    private Long giftId;

    /** 奖品价值 */
    @Excel(name = "奖品价值")
    private BigDecimal giftPrice;

    /** 赠品名称 */
    @Excel(name = "赠品名称")
    private String giftName;

    /** 赠品图片 */
    @Excel(name = "赠品图片")
    private String giftImg;

    /** 店铺编号 */
    @Excel(name = "店铺编号")
    private Long shopId;

    /** 赠送个数 */
    @Excel(name = "奖品库存")
    private Long giftNum;

    /**奖品类型（10=普通奖品，20=特殊奖品）*/
    @Excel(name = "奖品类型（10=普通奖品，20=特殊奖品）")
    private String giftType;

    @Excel(name = "奖品级别")
    private String giftRate;

    /** 中奖几率 */
    private BigDecimal probability;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("giftId", getGiftId())
            .append("giftPrice", getGiftPrice())
            .append("giftName", getGiftName())
            .append("giftImg", getGiftImg())
            .append("shopId", getShopId())
            .append("giftNum", getGiftNum())
            .toString();
    }
}
